home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
Development
/
Feelin021015
/
Examples
/
Notify.e
< prev
next >
Wrap
Text File
|
2002-10-28
|
3KB
|
124 lines
OPT PREPROCESS
MODULE 'feelin','libraries/feelin'
PROC main()
DEF c,w,g,
gl,gr,gc,
pl1,pl2,pr1,pr2,pc,pcl,pcr,tog
IF feelinbase := OpenLibrary('feelin.library',FV_VERSION)
c := ClientObject,
Child, w := WindowObject, FA_Window_Title,'Feelin : Notify',
Child, g := HGroup, FA_MinWidth,200,
Child, gl := vGauge(0,100,0),
Child, pl1 := vProp(0,10,111),
Child, pl2 := vProp(0,10,111),
Child, VGroup,
Child, pc := hProp(0,10,111),
Child, HGroup,
Child, pcl := hProp(0,10,111),
Child, pcr := hProp(0,10,111),
End,
Child, gc := hGauge(0,100,0),
Child, HGroup,
Child, TextObject, FA_Fixed,TRUE, DontChain, FA_Text, 'Toggle gauges look', FA_Text_VCenter,TRUE, End,
Child, tog := ImageObject, FA_Fixed,TRUE, InputToggle, FA_Image,'3:CheckMark.fb0', End,
End,
End,
Child, pr2 := vProp(0,10,111),
Child, pr1 := vProp(0,10,111),
Child, gr := vGauge(0,100,0),
End,
End,
End
IF c
F_DoA(pcl,FM_Notify,[FA_Prop_First,FV_Notify_Always,pl1,3,FM_Set,FA_Prop_First,FV_Notify_Value])
F_DoA(pcl,FM_Notify,[FA_Prop_First,FV_Notify_Always,pl2,3,FM_Set,FA_Prop_First,FV_Notify_Value])
F_DoA(pcr,FM_Notify,[FA_Prop_First,FV_Notify_Always,pr2,3,FM_Set,FA_Prop_First,FV_Notify_Value])
F_DoA(pcr,FM_Notify,[FA_Prop_First,FV_Notify_Always,pr1,3,FM_Set,FA_Prop_First,FV_Notify_Value])
F_DoA(pc,FM_Notify,[FA_Prop_First ,FV_Notify_Always,gc,3,FM_Set,FA_Numeric_Value,FV_Notify_Value])
F_DoA(gc,FM_Notify,[FA_Numeric_Value,FV_Notify_Always,gl,3,FM_Set,FA_Numeric_Value,FV_Notify_Value])
F_DoA(gc,FM_Notify,[FA_Numeric_Value,FV_Notify_Always,gr,3,FM_Set,FA_Numeric_Value,FV_Notify_Value])
F_DoA(gl,FM_Notify,[FA_Numeric_Value,FV_Notify_Always,pcl,3,FM_Set,FA_Prop_First,FV_Notify_Value])
F_DoA(gr,FM_Notify,[FA_Numeric_Value,FV_Notify_Always,pcr,3,FM_Set,FA_Prop_First,FV_Notify_Value])
F_DoA(tog,FM_Notify,[FA_Selected,FV_Notify_Always,g,5,FM_Set,FA_Gauge_Simple,FV_Notify_Value,FA_Group_Forward,TRUE])
F_DoA(w,FM_Notify,[FA_Window_CloseRequest,TRUE,FV_Notify_Client,2,FM_Client_ReturnID,FV_Client_Quit])
F_Set(w,FA_Window_Open,TRUE)
F_DoA(c,FM_Client_Run,NIL)
F_DisposeObj(c)
ENDIF
CloseLibrary(feelinbase)
ELSE
WriteF('Unable to open feelin.library\n')
ENDIF
ENDPROC
PROC vProp(first,visible,entries)
RETURN PropObject,
PropFrame,
PropBack,
FA_FixWidth,20,
FA_Prop_Entries, entries,
FA_Prop_First, first,
FA_Prop_Visible, visible,
End
ENDPROC
PROC hProp(first,visible,entries)
RETURN PropObject,
PropFrame,
PropBack,
FA_Horizontal,TRUE,
FA_FixedHeight,TRUE,
FA_MinWidth,50,
FA_Prop_Entries,entries,
FA_Prop_First, first,
FA_Prop_Visible, visible,
End
ENDPROC
PROC hGauge(min,max,val)
RETURN GaugeObject,
GaugeFrame,
FA_Horizontal,TRUE,
FA_FixedHeight,TRUE,
FA_ChainToCycle,FALSE,
FA_Numeric_Min,min,
FA_Numeric_Max,max,
FA_Numeric_Value,val,
End
ENDPROC
PROC vGauge(min,max,val)
RETURN GaugeObject,
GaugeFrame,
FA_ChainToCycle,FALSE,
FA_FixWidth,20,
FA_Numeric_Min,min,
FA_Numeric_Max,max,
FA_Numeric_Value,val,
End
ENDPROC